import 'package:flutter/material.dart';

class LessGroupPage extends StatelessWidget {
  TextStyle textStyle = TextStyle(
    fontSize: 20.0,
    color: Colors.red,
  );
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          'less_group_page',
          style: TextStyle(
            fontSize: 20.0
          ),
        ),
      ),
      body: Container(
        decoration: BoxDecoration(
          color: Colors.white,
        ),
        alignment: Alignment.center,
        child:Column(
          children: <Widget>[
            Text(
              'I am Text',
              style: textStyle,
            ),
            Icon(
              Icons.android,
              size: 50.0,
              color: Colors.red,
            ),
            CloseButton(),
            BackButton(),
            Chip(
              avatar: Icon(Icons.phone),
              label: Text('StatelessWidget与基本组件'),
            ),
            Divider(
              height: 10,  //容器高度，不是线的高度
              indent: 10, //左侧间距
              color: Colors.orange,
            ),
            Card(
              color: Colors.blue,
              elevation: 5.0,
              margin: EdgeInsets.all(10.0),
              child: Container(
                padding: EdgeInsets.all(10.0),
                child: Text('I am Card',style: textStyle,),
              ),
            ),
            AlertDialog(
              title: Text('盘他'),
              content: Text('你个遭老头子坏的很'),
            )
          ],
        ) ,
      ),
    );
  }
}
